<%@page import="com.etc.traval.bizimpl.StrategyBizImpl"%>
<%@page import="com.etc.traval.biz.StrategyBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script>
	function repalceHtml(str){  
    var dd=str.replace(/<\/?.+?>/g,"");  
    var dds=dd.replace(/ /g,"");//dds为得到后的内容  
    alert(dds); 
	}  
	</script>

  </head>
  
  <body>
   <%
    StrategyBiz sbiz=new  StrategyBizImpl();
	String str=sbiz.querySTrategyById(10992).getStrategy_content(); 
    %>
    
    <script  type="text/javascript">  

    function toGjzxt(str){
        var dd=str.replace(/<\/?.+?>/g,"");  
   		var ddq=dd.replace(/ /g,"");//dds为得到后的内容  
   		var dds=ddq.replace(/&nbsp;/g," ").substr(0, 80)+'....';
		return dds;		
    }
</script>
    <input type="button" value="点击" onclick="toGjzxt()">
   <textarea id=mytexte ></textarea>
  </body>
</html>
